

/* ECharts 热门排行 start */
// 基于准备好的dom，初始化echarts实例
var myChart_01 = echarts.init(document.getElementById('main_01'));

var option_01 = {
	title: {
		text: '公众号推送分析',
		subtext: '数据本原于数据库(默认近7天)'
	},
	tooltip: {
		trigger: 'axis'
	},
	legend: {
		data: ['早上6点','早上8点','优惠券推送','早上11点','下午6点','晚上8点','晚上9点']
	},
	toolbox: {
		show: true,
		feature: {
			dataView: {show: true, readOnly: false},
			magicType: {show: true, type: ['line', 'bar']},
			restore: {show: true},
			saveAsImage: {show: true}
		}
	},
	calculable: true,
	xAxis: [
		{
			type: 'category',
			data: []
		}
	],
	yAxis: [
		{
			type: 'value'
		}
	],
	series: [
		{
			name: '早上6点',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '早上8点',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '优惠券推送',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '早上11点',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '下午6点',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '晚上8点',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '晚上9点',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		}
	]
};



// 使用刚指定的配置项和数据显示图表。
myChart_01.setOption(option_01);
/* ECharts 热门排行 end */









/* ECharts 热门排行 start */
// 基于准备好的dom，初始化echarts实例
var myChart_02 = echarts.init(document.getElementById('main_02'));

var option_02 = {
	title: {
		text: '关键词回复分析',
		subtext: '数据本原于数据库(默认近7天)'
	},
	tooltip: {
		trigger: 'axis'
	},
	legend: {
		data: ['回复数','回复人数','回复会员数']
	},
	toolbox: {
		show: true,
		feature: {
			dataView: {show: true, readOnly: false},
			magicType: {show: true, type: ['line', 'bar']},
			restore: {show: true},
			saveAsImage: {show: true}
		}
	},
	calculable: true,
	xAxis: [
		{
			type: 'category',
			data: []
		}
	],
	yAxis: [
		{
			type: 'value'
		}
	],
	series: [
		{
			name: '回复数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '回复人数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '回复会员数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		}
	]
};



// 使用刚指定的配置项和数据显示图表。
myChart_02.setOption(option_02);
/* ECharts 热门排行 end */









/* ECharts 热门排行 start */
// 基于准备好的dom，初始化echarts实例

if(document.getElementById('main_03')){
	var myChart_03 = echarts.init(document.getElementById('main_03'));

	var option_03 = {
		title: {
			text: '会员支付分析',
			subtext: '数据本原于数据库(默认近7天)'
		},
		tooltip: {
			trigger: 'axis'
		},
		legend: {
			data: ['访问数','点击数','付款数','付款金额']
		},
		toolbox: {
			show: true,
			feature: {
				dataView: {show: true, readOnly: false},
				magicType: {show: true, type: ['line', 'bar']},
				restore: {show: true},
				saveAsImage: {show: true}
			}
		},
		calculable: true,
		xAxis: [
			{
				type: 'category',
				data: []
			}
		],
		yAxis: [
			{
				type: 'value'
			}
		],
		series: [
			{
				name: '访问数',
				type: 'bar',
				data: [],
				label: {
					show: true,
					position: 'inside'
				}
			},{
				name: '点击数',
				type: 'bar',
				data: [],
				label: {
					show: true,
					position: 'inside'
				}
			},{
				name: '付款数',
				type: 'bar',
				data: [],
				label: {
					show: true,
					position: 'inside'
				}
			},{
				name: '付款金额',
				type: 'bar',
				data: [],
				label: {
					show: true,
					position: 'inside'
				}
			}
		]
	};



	// 使用刚指定的配置项和数据显示图表。
	myChart_03.setOption(option_03);
	/* ECharts 热门排行 end */
}





/* ECharts 热门排行 start */
// 基于准备好的dom，初始化echarts实例
var myChart_04 = echarts.init(document.getElementById('main_04'));

var option_04 = {
	title: {
		text: '文章/视频点击、分享分析',
		subtext: '数据本原于数据库(默认近7天)'
	},
	tooltip: {
		trigger: 'axis'
	},
	legend: {
		data: ['点击数','分享数','点击人数','分享人数']
	},
	toolbox: {
		show: true,
		feature: {
			dataView: {show: true, readOnly: false},
			magicType: {show: true, type: ['line', 'bar']},
			restore: {show: true},
			saveAsImage: {show: true}
		}
	},
	calculable: true,
	xAxis: [
		{
			type: 'category',
			data: []
		}
	],
	yAxis: [
		{
			type: 'value'
		}
	],
	series: [
		{
			name: '点击数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '分享数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '点击人数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '分享人数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		}
	]
};



// 使用刚指定的配置项和数据显示图表。
myChart_04.setOption(option_04);
/* ECharts 热门排行 end */







/* ECharts 热门排行 start */
// 基于准备好的dom，初始化echarts实例
var myChart_05 = echarts.init(document.getElementById('main_05'));

var option_05 = {
	title: {
		text: '公众号关注数分析',
		subtext: '数据本原于公众号(默认近7天)'
	},
	tooltip: {
		trigger: 'axis'
	},
	legend: {
		data: ['新增关注数','取关数','净关注数']
	},
	toolbox: {
		show: true,
		feature: {
			dataView: {show: true, readOnly: false},
			magicType: {show: true, type: ['line', 'bar']},
			restore: {show: true},
			saveAsImage: {show: true}
		}
	},
	calculable: true,
	xAxis: [
		{
			type: 'category',
			data: []
		}
	],
	yAxis: [
		{
			type: 'value'
		}
	],
	series: [
		{
			name: '新增关注数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '取关数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		},{
			name: '净关注数',
			type: 'bar',
			data: [],
			label: {
				show: true,
				position: 'inside'
			}
		}
	]
};



// 使用刚指定的配置项和数据显示图表。
myChart_05.setOption(option_05);
/* ECharts 热门排行 end */
